Matthias Clasen [Tue, 16 Jun 2020 20:22:19 +0000 (16:22 -0400)]
gtk-demo: Fix the settings demo
This was not updated to the latest api of GtkEditableLabel.
Matthias Clasen [Wed, 17 Jun 2020 22:08:17 +0000 (18:08 -0400)]
gtk-demo: Cosmetic changes
Reword the titles and texts for several demos.
Matthias Clasen [Wed, 17 Jun 2020 22:06:28 +0000 (18:06 -0400)]
gtk-demo: Cosmetic changes to the tagged entry demo
Matthias Clasen [Wed, 17 Jun 2020 21:53:40 +0000 (17:53 -0400)]
gtk-demo: Fix the tagged entry demo
We were using gtk_box_append on a button. Fallout
from the container removal.
Matthias Clasen [Wed, 17 Jun 2020 21:46:40 +0000 (17:46 -0400)]
gtk4-demo: Cosmetic fixes to the dialog demo
Make this look a bit less ancient.
Matthias Clasen [Wed, 17 Jun 2020 17:48:40 +0000 (13:48 -0400)]
gtk-demo: Add a missing source file
Matthias Clasen [Wed, 17 Jun 2020 17:37:12 +0000 (17:37 +0000)]
Merge branch 'fix-initial-demo-selection' into 'master'
gtk-demo: Select the initial demo properly
See merge request GNOME/gtk!2105
Emmanuele Bassi [Wed, 17 Jun 2020 16:54:06 +0000 (16:54 +0000)]
Merge branch 'no-more-testdbus' into 'master'
Stop using GTestDBus
See merge request GNOME/gtk!2104
Matthias Clasen [Wed, 17 Jun 2020 16:25:28 +0000 (12:25 -0400)]
gtk-demo: Select the initial demo properly
GtkSingleSelection does not give us a notification when
autoselect kicks in to select the first item. This was
barely noticeable, since the notebook ends up correctly
populated anyway, but the window title is not.
Matthias Clasen [Wed, 17 Jun 2020 16:05:07 +0000 (12:05 -0400)]
Stop using GTestDBus
It is causing tests to timeout when libraries we are using
leak bus connections, and it turns out our tests run fine
without a session bus.
Florentina Mușat [Wed, 17 Jun 2020 15:38:14 +0000 (15:38 +0000)]
Update Romanian translation
Florentina Mușat [Wed, 17 Jun 2020 15:31:22 +0000 (15:31 +0000)]
Update Romanian translation
Matthias Clasen [Wed, 17 Jun 2020 15:06:44 +0000 (15:06 +0000)]
Merge branch 'ebassi/ci-cleanup-master' into 'master'
Small clean ups for the CI file
See merge request GNOME/gtk!2102
Emmanuele Bassi [Mon, 8 Jun 2020 10:35:49 +0000 (11:35 +0100)]
ci: Move backend Meson flags into a variable
So we don't have to copy them around.
Emmanuele Bassi [Mon, 8 Jun 2020 10:00:20 +0000 (11:00 +0100)]
ci: Move images into environment variables
Currently we have to hunt all the `image` keys when updating the image
in use for a job. We should centralise them all at the top of the file,
so they are easy to update in one simple change.
Daniel Mustieles [Wed, 17 Jun 2020 11:54:04 +0000 (13:54 +0200)]
Updated Spanish translation
Yuri Chornoivan [Wed, 17 Jun 2020 08:28:31 +0000 (08:28 +0000)]
Update Ukrainian translation
Matthias Clasen [Tue, 16 Jun 2020 20:00:13 +0000 (20:00 +0000)]
Merge branch 'page-setup-combos' into 'master'
Page setup combos
See merge request GNOME/gtk!2100
Matthias Clasen [Tue, 16 Jun 2020 19:52:51 +0000 (19:52 +0000)]
Merge branch 'wip/jimmac/dropdown-styling' into 'master'
Adwaita: dropdown styling
Closes #2846
See merge request GNOME/gtk!2101
Jakub Steiner [Mon, 15 Jun 2020 13:18:04 +0000 (15:18 +0200)]
Adwaita: dropdown styling
- selected item color
- offset dropdown form the parent control
- special styling for the top search entry
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2846
Matthias Clasen [Tue, 16 Jun 2020 01:57:39 +0000 (21:57 -0400)]
pagesetupdialog: Convert the printer combo
Turn the printer combo into a dropdown.
Matthias Clasen [Tue, 16 Jun 2020 00:31:27 +0000 (20:31 -0400)]
pagesetupdialog: Port the papersize combo
Turn the papersize combo into a dropdown.
Matthias Clasen [Tue, 16 Jun 2020 16:06:34 +0000 (12:06 -0400)]
Drop unused includes
This is just cleanup to help tracking down
remaining GtkComboBox uses.
Friedrich Beckmann [Tue, 16 Jun 2020 14:59:06 +0000 (16:59 +0200)]
quartz: added open capability to gtk_application
This patch implements the openFiles delegate which is required
to open files which are associated with an application via the
Finder or via open on the command line. The patch has been
proposed by jessevdk@gmail.com.
See: https://gitlab.gnome.org/GNOME/gtk/-/issues/463
I tested the patch with the GNU pspp application on MacOS with
the quartz backend.
Piotr Drąg [Tue, 16 Jun 2020 16:16:43 +0000 (18:16 +0200)]
Update POTFILES.in
Emmanuele Bassi [Tue, 16 Jun 2020 15:05:25 +0000 (15:05 +0000)]
Merge branch 'wip/ricotz/cleanup' into 'master'
gdk: Drop gdk_device_get_axis_value leftovers
See merge request GNOME/gtk!2097
Benjamin Otte [Tue, 16 Jun 2020 13:57:49 +0000 (13:57 +0000)]
Merge branch 'cherry-pick-
947c3e9f' into 'master'
Merge branch 'benzea/fix-css-update' into 'gtk-3-24'
See merge request GNOME/gtk!2096
Rico Tzschichholz [Tue, 16 Jun 2020 13:31:29 +0000 (15:31 +0200)]
gdk: Drop gdk_device_get_axis_value leftovers
Benjamin Otte [Mon, 15 Jun 2020 20:13:56 +0000 (20:13 +0000)]
Merge branch 'benzea/fix-css-update' into 'gtk-3-24'
Fix CSS update loop
See merge request GNOME/gtk!2093
(cherry picked from commit
947c3e9f723ef733ab46e4dce34fa41b91cb0604)
7a5caf1b cssnode: Don't queue_validate/deque_validate invisible nodes
Daniel Mustieles [Tue, 16 Jun 2020 07:47:37 +0000 (09:47 +0200)]
Updated Spanish translation
Daniel Mustieles [Tue, 16 Jun 2020 07:46:49 +0000 (09:46 +0200)]
Updated Spanish translation
Matthias Clasen [Tue, 16 Jun 2020 05:02:44 +0000 (05:02 +0000)]
Merge branch 'printer-combo-conversion' into 'master'
Printer combo conversion
See merge request GNOME/gtk!2095
Matthias Clasen [Mon, 15 Jun 2020 22:15:58 +0000 (18:15 -0400)]
fontchooser: Drop unused includes
Matthias Clasen [Mon, 15 Jun 2020 22:14:06 +0000 (18:14 -0400)]
text: Drop unused includes
Matthias Clasen [Mon, 15 Jun 2020 21:54:49 +0000 (17:54 -0400)]
printdialog: Convert some leftover code
There was still some code expecting to deal with tree
models. Convert it to work with list models.
Matthias Clasen [Mon, 15 Jun 2020 20:33:11 +0000 (16:33 -0400)]
pagesetupdialog: Drop the Private struct
We don't need it here.
Matthias Clasen [Sun, 14 Jun 2020 12:30:54 +0000 (08:30 -0400)]
paperdialog: Convert the printer combo
Use a GtkDropDown for the printer combo.
Matthias Clasen [Mon, 15 Jun 2020 20:42:53 +0000 (20:42 +0000)]
Merge branch 'fix-notebook-tabs' into 'master'
Fix notebook tabs
Closes #2842 and #2841
See merge request GNOME/gtk!2092
Matthias Clasen [Mon, 15 Jun 2020 18:16:45 +0000 (14:16 -0400)]
notebook: Don't capture clicks
Using the bubble works just fine here, and keeps buttons
in notebook tabs working without side-effects.
Fixes: #2841
Matthias Clasen [Mon, 15 Jun 2020 17:49:17 +0000 (17:49 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernativeportal_get_filter' into 'master'
Make gtk_file_chooser_get_filter work for portal case (issue #1820, master)
Closes #1820
See merge request GNOME/gtk!2070
Matthias Clasen [Mon, 15 Jun 2020 17:45:57 +0000 (13:45 -0400)]
searchentry: Fix keynav
Shift-Tabbing was getting stuck in GtkSearchEntry and
GtkPasswordEntry, since they grab the focus to a child
of theirs. Copy the same fix that we are already using
in GtkEntry.
Fixes: #2842
Matthias Clasen [Mon, 15 Jun 2020 17:45:28 +0000 (13:45 -0400)]
docs: Cosmetics
Remove a few instances of GTK+ in the docs.
Matthias Clasen [Mon, 15 Jun 2020 17:01:25 +0000 (17:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
button: Center images
See merge request GNOME/gtk!2090
Matthias Clasen [Mon, 15 Jun 2020 16:47:57 +0000 (16:47 +0000)]
Merge branch 'editable-label' into 'master'
Editable label
See merge request GNOME/gtk!2081
Matthias Clasen [Mon, 15 Jun 2020 16:23:32 +0000 (12:23 -0400)]
button: Center images
If we leave the valign to be the default fill, then
the images pick up baseline alignment from the environment,
which can occasionally lead to misplaced -/+ icons in
spinbuttons, for example in the "Page Setup" tab of
the print dialog.
Matthias Clasen [Fri, 12 Jun 2020 18:11:16 +0000 (14:11 -0400)]
paperdialog: Port to use GtkListView
Use GtkListView and GtkEditableLabel here.
Matthias Clasen [Fri, 12 Jun 2020 15:07:37 +0000 (11:07 -0400)]
gtk-demo: Use editable labels in the settings demo
This is more in line with the expected behavior for
editable lists.
Matthias Clasen [Fri, 12 Jun 2020 15:07:07 +0000 (11:07 -0400)]
Add a GtkEditableLabel widget
Matthias Clasen [Mon, 15 Jun 2020 16:01:22 +0000 (16:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Don't set style classes on app widgets
See merge request GNOME/gtk!2089
Matthias Clasen [Mon, 15 Jun 2020 15:21:20 +0000 (11:21 -0400)]
inspector: Don't set style classes on app widgets
Due to a mixup, the inspector was setting .dim-label on
widgets that get unmapped, instead of the labels representing
them in the object tree.
Matthias Clasen [Mon, 15 Jun 2020 15:05:14 +0000 (15:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
dropdown: Style fixups
See merge request GNOME/gtk!2088
Matthias Clasen [Mon, 15 Jun 2020 14:23:39 +0000 (10:23 -0400)]
dropdown: Style fixups
Make the dropdown popover have a .menu style class,
and add padding to the rows in the popover. Also,
make the popover left-aligned with the button.
Alexander Larsson [Mon, 15 Jun 2020 10:27:02 +0000 (10:27 +0000)]
Merge branch 'final-frame-clock-work' into 'master'
Final frame clock work
See merge request GNOME/gtk!2087
Yariv Barkan [Wed, 10 Jun 2020 07:54:07 +0000 (10:54 +0300)]
frame clock: fix scheduling
Fix scheduling of the frame clock when we don't receive "frame drawn"
messages from the compositor.
If we received "frame drawn" events recently, then the "smooth frame
time" would be in sync with the vsync time. When we don't receive frame
drawn events, the "smooth frame time" is simply incremented by constant
multiples of the refresh interval. In both cases we can use this smooth
time as the basis for scheduling the next clock cycle.
By only using the "smooth frame time" as a basis we also benefit from
more consistent scheduling cadence. If, for example, we got "frame
drawn" events, then didn't receive them for a few frames, we would still
be in sync when we start receiving these events again.
Yariv Barkan [Wed, 10 Jun 2020 07:45:14 +0000 (10:45 +0300)]
frame clock: adjust reported frame time
When an animation is started while the application is idle, that often
happens as a result of some external event. This can be an input event,
an expired timer, data arriving over the network etc. The result is that
the first animation clock cycle could be scheduled at some random time,
as opposed to follow up cycles which are usually scheduled right after a
vsync.
Since the frame time we report to the application is correlated to the
time when the frame clock was scheduled to run, this can result in
uneven times reported in the first few animation frames. In order to fix
that, we measure the phase of the first clock cycle - i.e. the offset
between the first cycle and the preceding vsync. Once we start receiving
"frame drawn" signals, the cadence of the frame clock scheduling becomes
tied to the vsync. In order to maintain the regularity of the reported
frame times, we adjust subsequent reported frame times with the
aforementioned phase.
Yuri Chornoivan [Mon, 15 Jun 2020 06:33:54 +0000 (06:33 +0000)]
Update Ukrainian translation
Matthias Clasen [Mon, 15 Jun 2020 01:26:45 +0000 (01:26 +0000)]
Merge branch 'mingw-x64-compiler-warnings' into 'master'
Fix various compiler warnings with the 64bit mingw build
See merge request GNOME/gtk!2020
Matthias Clasen [Sun, 14 Jun 2020 22:06:16 +0000 (22:06 +0000)]
Merge branch 'fix-spin-button-auto-sizing' into 'master'
spinbutton: Bring back auto-sizing
See merge request GNOME/gtk!2085
Christoph Reiter [Sun, 14 Jun 2020 18:02:46 +0000 (20:02 +0200)]
CI: Switch to 64bit mingw for the MSYS2 job
64 bit is more common now and also tests more things because
sizeof(glong) != sizeof(gpointer)
Christoph Reiter [Tue, 2 Jun 2020 18:41:38 +0000 (20:41 +0200)]
Fix various compiler warnings with the 64bit mingw build
Use better matching format modifiers/specifiers, initialise some things
which in theory wont be written to because of getters using g_return_if_fail(),
a cast, and gsize as input for malloc because gsize!=glong on 64bit Windows.
Matthias Clasen [Sun, 14 Jun 2020 14:57:42 +0000 (14:57 +0000)]
Merge branch 'tchaik/fix-lpr-build' into 'master'
Fix the lpr print backend build (redundant-decls)
See merge request GNOME/gtk!2084
Matthias Clasen [Sun, 14 Jun 2020 13:12:49 +0000 (09:12 -0400)]
spinbutton: Bring back auto-sizing
We lost this when GtkSpinButton was first ported
to the new editable regime, and then the GtkBoxLayout.
Bring it back, but without text measurement, by overriding
width-chars for the GtkText inside, and only do it if
GtkSpinButton::width-chars is unset (ie -1).
Also adjust the documentation slightly to point out
how auto-sizing can be turned off.
Martin Blanchard [Sun, 14 Jun 2020 14:13:37 +0000 (16:13 +0200)]
Fix the lpr print backend build (redundant-decls)
Class and instance _init() functions are already declared by
G_DEFINE_DYNAMIC_TYPE ().
Asier Sarasua Garmendia [Sat, 13 Jun 2020 20:19:00 +0000 (20:19 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 19:40:17 +0000 (19:40 +0000)]
Update Basque translation
Matthias Clasen [Sat, 13 Jun 2020 16:17:49 +0000 (16:17 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
widget-factory: Make the print dialog more functional
See merge request GNOME/gtk!2083
Matthias Clasen [Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)]
widget-factory: Make the print dialog more functional
Allow opening the papersize dialog.
Yuri Chornoivan [Sat, 13 Jun 2020 11:45:35 +0000 (11:45 +0000)]
Update Ukrainian translation
Piotr Drąg [Sat, 13 Jun 2020 10:48:27 +0000 (12:48 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Fri, 12 Jun 2020 21:53:48 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
paperdialog: Drop the private struct
See merge request GNOME/gtk!2082
Matthias Clasen [Fri, 12 Jun 2020 16:52:47 +0000 (12:52 -0400)]
paperdialog: Drop the private struct
Not needed here.
Matthias Clasen [Fri, 12 Jun 2020 16:39:46 +0000 (16:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2080
Matthias Clasen [Fri, 12 Jun 2020 14:01:17 +0000 (14:01 +0000)]
Merge branch 'fix-custom-paper-dialog' into 'master'
Fix the custom paper dialog
See merge request GNOME/gtk!2078
Matthias Clasen [Fri, 12 Jun 2020 12:28:59 +0000 (08:28 -0400)]
printdialog: Replace the papersize combo with a dropdown
This one is more complicated, since it involves
separators and a custom item.
Matthias Clasen [Fri, 12 Jun 2020 13:20:46 +0000 (09:20 -0400)]
Adwaita: Allow separators on individual list items
Allow setting a .separator style class on list items
to put a separator before the item.
Matthias Clasen [Thu, 11 Jun 2020 22:10:42 +0000 (18:10 -0400)]
printdialog: Replace some combo boxes with drop downs
These are just the simple cases.
Matthias Clasen [Thu, 11 Jun 2020 23:59:35 +0000 (19:59 -0400)]
printeroptionwidget: Port to GtkDropDown
Use GtkDropDown instead of GtkComboBox in the print dialog.
Matthias Clasen [Fri, 12 Jun 2020 03:25:58 +0000 (23:25 -0400)]
testdropdown: Add some more tests
Add a homegrown combobox entry replacement that
combines a dropdown with a plain entry.
Matthias Clasen [Fri, 12 Jun 2020 03:24:36 +0000 (23:24 -0400)]
dropdown: Make the stack nonhomogeneous
Without this, the (None) in the empty page forces
the button to have a large minimum width, even when
we don't put a widget in it.
Matthias Clasen [Fri, 12 Jun 2020 12:46:18 +0000 (08:46 -0400)]
Fix the custom paper dialog
This broke during the container removal.
Yuri Chornoivan [Fri, 12 Jun 2020 06:40:07 +0000 (06:40 +0000)]
Update Ukrainian translation
Matthias Clasen [Thu, 11 Jun 2020 23:44:48 +0000 (23:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2077
Matthias Clasen [Thu, 11 Jun 2020 22:29:58 +0000 (18:29 -0400)]
dropdown: Make the popup as wide as the button
Having narrow popups on a wide button looks awkward.
Do the same as the combo box, and ensure the popup
is at least as wide as the button.
Matthias Clasen [Sun, 7 Jun 2020 13:08:10 +0000 (09:08 -0400)]
iconbrowser: Drop app menu leftovers
We don't use menus.ui anymore, so don't put it in a resource.
Matthias Clasen [Thu, 11 Jun 2020 22:09:12 +0000 (18:09 -0400)]
Adwaita: bring dropdown arrows back
These got lost when the css name changed from combobox
to dropdown.
Matthias Clasen [Thu, 11 Jun 2020 21:25:57 +0000 (17:25 -0400)]
docs: Cosmetics
Remove a few instances of GTK+ from the docs, and
remove references to ancient versions.
Matthias Clasen [Thu, 11 Jun 2020 20:58:52 +0000 (20:58 +0000)]
Merge branch 'recent-model' into 'master'
Add a list model for recent files
See merge request GNOME/gtk!2073
Matthias Clasen [Wed, 10 Jun 2020 23:55:58 +0000 (19:55 -0400)]
testcolumnview: Add recent file support
Use testcolumnview --recent to see recent files.
Matthias Clasen [Wed, 10 Jun 2020 21:03:13 +0000 (17:03 -0400)]
Add GtkBookmarkList
This is a listmodel similar to GtkDirectoryList,
for tracking recent files.
Matthias Clasen [Thu, 11 Jun 2020 13:08:47 +0000 (13:08 +0000)]
Merge branch 'property-selection-getters' into 'master'
propertyselection: Add getters
See merge request GNOME/gtk!2075
Matthias Clasen [Thu, 11 Jun 2020 11:15:27 +0000 (07:15 -0400)]
propertyselection: Add getters
These were missing.
Matthias Clasen [Wed, 10 Jun 2020 14:47:36 +0000 (14:47 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernative_get_filter' into 'master'
filechoosernative: Make get_filter work for (non-portal) native chooser (master, issue #1820)
Closes #1820
See merge request GNOME/gtk!2069
Emmanuele Bassi [Wed, 10 Jun 2020 14:35:10 +0000 (14:35 +0000)]
Merge branch 'wip/carlosg/zoom-no-touchpad-warnings' into 'master'
gtkgesturezoom: Do not check touchpad phase on generic events
Closes #2825
See merge request GNOME/gtk!2071
Matthias Clasen [Wed, 10 Jun 2020 14:35:01 +0000 (14:35 +0000)]
Merge branch 'scroll-compression' into 'master'
gdk: Compress scroll events
Closes #2800
See merge request GNOME/gtk!2066
Matthias Clasen [Wed, 10 Jun 2020 13:06:13 +0000 (13:06 +0000)]
Merge branch 'device-cleanup' into 'master'
Device cleanup
See merge request GNOME/gtk!2068
sicklylife [Wed, 10 Jun 2020 12:34:42 +0000 (12:34 +0000)]
Update Japanese translation
Carlos Garnacho [Wed, 10 Jun 2020 12:27:14 +0000 (14:27 +0200)]
gtkgesturezoom: Do not check touchpad phase on generic events
This gesture handles both individual touch events and touchpad gesture
events, and was checking the touchpad phase in generic code paths. This
is dubious since event methods error out on the wrong GdkEventTypes.
Check the touchpad gesture phase within the branch handling touchpad
events, and make it clear which is the gesture phase of all that we are
ignoring.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2825
sicklylife [Wed, 10 Jun 2020 12:18:55 +0000 (12:18 +0000)]
Update Japanese translation
Matthias Clasen [Tue, 9 Jun 2020 19:26:04 +0000 (15:26 -0400)]
gdk: Drop axis labels
This was only ever implemented on X11, and the labels
here were atom names, so unlikely to be useful for
anything interesting.
Alexander Larsson [Wed, 10 Jun 2020 07:19:22 +0000 (07:19 +0000)]
Merge branch 'win32-use-g-stat' into 'master'
gtkiconcache: Use g_stat instead of fstat
See merge request GNOME/gtk!2019